﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace Acoris.Rendering
{
    /// <summary>
    /// 表示根布局元素
    /// </summary>
    public sealed class RootLayout : VisualElement,IEnumerable<VisualElement>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="factory"></param>
        internal override void CreateResources(IDrawingContext factory)
        {
            
        }

        public override void Dispose()
        {
            
        }

        internal override void Render(IDrawingContext drawingContext)
        {
            
        }

        public IEnumerator<VisualElement> GetEnumerator()
        {
            return this.VisualChildren.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return this.VisualChildren.GetEnumerator();
        }

        /// <summary>
        /// 获取或设置布局根元素的子元素
        /// </summary>
        public VisualElementChildren VisualChildren { get; set; }

        /// <summary>
        /// 获取或设置DPI
        /// </summary>
        public float DPI { get; set; }
    }
}
